package org.example.frw.api.base.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.example.frw.api.base.intf.MetaData;

import java.util.Date;

@Setter
@Getter
@EqualsAndHashCode
@ToString
public class MetaDataResponse implements MetaData {
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;
  private Long id;

  @Override
  public Date createTime() {
    return createTime;
  }

  @Override
  public Date updateTime() {
    return updateTime;
  }

  @Override
  public Long id() {
    return id;
  }
}
